package com.ihcy.base.config;

import com.ihcy.base.core.enums.EnumAbilityConverterFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    @Override
    public void addFormatters(FormatterRegistry registry) {
        registry.addConverterFactory(new EnumAbilityConverterFactory());
        WebMvcConfigurer.super.addFormatters(registry);
    }
}
